import React, { Component } from "react";
import { NavLink } from "react-router-dom";
import { renderRoutes } from "react-router-config";
export default class Home extends Component {
  componentDidMount() {
    console.log(this.props);
  }
  render() {
    return (
      <div>
        <h2>Home</h2>
        <NavLink to="/home/com1">com1</NavLink>
        {renderRoutes(this.props.route.routes)}
      </div>
    );
  }
}
